package pkg

import "regexp"

func Tel(s string) (string, bool) {
	if s == "" {
		return "手机号不能为空", false
	}
	re := regexp.MustCompile("^1[3-9][0-9]{9}$")
	return "", re.MatchString(s)
}

func Password(s string) string {
	if s == "" {
		return "密码不能为空"
	}
	return ""
}
